﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BullTasDesaDal.Service;
using BullTasDesaDal.Entities;
using CrystalDecisions.CrystalReports.Engine;

namespace WSBulTasDesa
{
    public partial class wfReport : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request.QueryString["idAppraisal"]))
            {
                dsReport ds = ReportService.GetReport(int.Parse(Request.QueryString["idAppraisal"].ToString()));
                ReportDocument rptDoc = new ReportDocument();
                rptDoc.Load(Server.MapPath("RDLC/pp.rpt"));
                rptDoc.SetDataSource(ds);
                crViewer.ReportSource = rptDoc;

            }

        }
    }
}